package com.jumi.microservice.domain.vo;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/7/18 15:23
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
@ApiModel(value="Role对象", description="角色表")
public class RoleVO extends AbstractObject implements Serializable {

    @ApiModelProperty(value = "橘色id")
    private Long id;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空!")
    @Length(max = 10,message = "角色名称长度不能超过10个字符")
    private String roleName;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "角色排序不能为空")
    private Integer orderNum;

    @ApiModelProperty(value = "角色的说明备注")
    @Length(max = 100,message = "角色描述长度不能超过100个字符")
    private String roleComment;

    @ApiModelProperty(value = "状态，1启用，0.禁用")
    private Integer status;

    @ApiModelProperty(value = "权限id(添加/编辑)")
    private List<Integer> priorityIds;

    @ApiModelProperty(value = "权限id(获取)")
    private String priorityReadIds;

    @ApiModelProperty(value = "添加开始时间")
    private String startTimeAdd;

    @ApiModelProperty(value = "添加结束时间")
    private String endTimeAdd;

    @ApiModelProperty(value = "修改开始时间")
    private String startTimeUp;

    @ApiModelProperty(value = "修改结束时间")
    private String endTimeUp;

    @ApiModelProperty(value = "添加人")
    private String creater;

    @ApiModelProperty(value = "添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getRoleComment() {
        return roleComment;
    }

    public void setRoleComment(String roleComment) {
        this.roleComment = roleComment;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long roleId) {
        this.id = roleId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartTimeAdd() {
        return startTimeAdd;
    }

    public void setStartTimeAdd(String startTimeAdd) {
        this.startTimeAdd = startTimeAdd;
    }

    public String getEndTimeAdd() {
        return endTimeAdd;
    }

    public void setEndTimeAdd(String endTimeAdd) {
        this.endTimeAdd = endTimeAdd;
    }

    public String getStartTimeUp() {
        return startTimeUp;
    }

    public void setStartTimeUp(String startTimeUp) {
        this.startTimeUp = startTimeUp;
    }

    public String getEndTimeUp() {
        return endTimeUp;
    }

    public void setEndTimeUp(String endTimeUp) {
        this.endTimeUp = endTimeUp;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public List<Integer> getPriorityIds() {
        return priorityIds;
    }

    public void setPriorityIds(List<Integer> priorityIds) {
        this.priorityIds = priorityIds;
    }

    public String getPriorityReadIds() {
        return priorityReadIds;
    }

    public void setPriorityReadIds(String priorityReadIds) {
        this.priorityReadIds = priorityReadIds;
    }
}
